package com.icangya.DAO.impl;

import com.icangya.DAO.IBadUserDAO;
import com.icangya.domain.BadUserDO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class BadUserDAOImpl  extends BaseDAO<BadUserDO> implements IBadUserDAO {


    @Override
    public List<BadUserDO> getBadUserByOpenid(String openId) {

        String hql = " FROM BadUserDO badUserDO WHERE badUserDO.openId = ? ";
        List<BadUserDO> list = (List<BadUserDO>) getHibernateTemplate().find(hql, openId);
        return list;

    }
}
